<?php

declare(strict_types=1);

namespace App\Chat\Request;

use Mine\MineFormRequest;

class MessageRequest extends MineFormRequest
{
    public function sendRules(): array
    {
        return [
            'talk_type'   => 'required|in:1,2',
            'receiver_id' => 'required|integer|min:1',
            'msg_content' => 'required',
            'robot_id' => 'required'
        ];
    }

    public function sendQuoteMsg(): array
    {
        return [
            'record_id' => 'required',
            'talk_type'   => 'required|in:1,2',
            'receiver_id' => 'required|integer|min:1',
            'msg_content' => 'required',
            'robot_id' => 'required'
        ];
    }
}